<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />

    

    
    <title>嗨AI生活</title>
    
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    
    <meta name="keywords" content="" />
    
    <meta name="description" content="修改思路先不改造，目前看改造的必要不大，只有blueprint依赖比较严重。 github相关 homeassistant&#x2F;setup.py python直接安装脚本，从github下载对应core代码zip包 homeassistant&#x2F;components&#x2F;blueprint&#x2F;importer.py 负责从github加载各种blueprint,不过blueprint docs&#x2F;source&#x2F;">
<meta property="og:type" content="article">
<meta property="og:title" content="嗨AI生活">
<meta property="og:url" content="http://hai-ai.gitee.io/dev-2-core/index.html">
<meta property="og:site_name" content="嗨AI生活">
<meta property="og:description" content="修改思路先不改造，目前看改造的必要不大，只有blueprint依赖比较严重。 github相关 homeassistant&#x2F;setup.py python直接安装脚本，从github下载对应core代码zip包 homeassistant&#x2F;components&#x2F;blueprint&#x2F;importer.py 负责从github加载各种blueprint,不过blueprint docs&#x2F;source&#x2F;">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2021-09-10T14:53:04.272Z">
<meta property="article:modified_time" content="2021-09-11T01:12:02.263Z">
<meta property="article:author" content="彭文杰">
<meta property="article:tag" content="HomeAssitant HA 智能">
<meta name="twitter:card" content="summary">
    

    
        <link rel="alternate" href="/" title="嗨AI生活" type="application/atom+xml" />
    

    

    
<link rel="stylesheet" href="/libs/font-awesome/css/font-awesome.min.css">

    
<link rel="stylesheet" href="/libs/titillium-web/styles.css">

    
<link rel="stylesheet" href="/libs/source-code-pro/styles.css">


    
<link rel="stylesheet" href="/css/style.css">


    
<script src="/libs/jquery/3.5.0/jquery.min.js"></script>

    
    
        
<link rel="stylesheet" href="/libs/lightgallery/css/lightgallery.min.css">

    
    
        
<link rel="stylesheet" href="/libs/justified-gallery/justifiedGallery.min.css">

    
    
    
    


<meta name="generator" content="Hexo 5.4.0"></head>

<body>
    <div id="wrap">
        <header id="header">
    <div id="header-outer" class="outer">
        <div class="container">
            <div class="container-inner">
                <div id="header-title">
                    <h1 class="logo-wrap">
                        <a href="/" class="logo"></a>
                    </h1>
                    
                </div>
                <div id="header-inner" class="nav-container">
                    <a id="main-nav-toggle" class="nav-icon fa fa-bars"></a>
                    <div class="nav-container-inner">
                        <ul id="main-nav">
                            
                                <li class="main-nav-list-item" >
                                    <a class="main-nav-list-link" href="/">主页</a>
                                </li>
                            
                                <li class="main-nav-list-item" >
                                    <a class="main-nav-list-link" href="/">使用教程</a>
                                    <ul class="main-nav-list-child">
                                        <li class="main-nav-list-item">
                                            
                                                <a class="main-nav-list-link" href="/categories/%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B/1-%E5%85%A5%E9%97%A8/">入门</a>
                                            
                                                <a class="main-nav-list-link" href="/categories/%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B/2-%E4%B8%AD%E7%BA%A7/">中级</a>
                                            
                                        </li>
                                    </ul>
                                </li>
                                
                                <li class="main-nav-list-item" >
                                    <a class="main-nav-list-link" href="/categories/%E5%BC%80%E5%8F%91%E6%95%99%E7%A8%8B/">开发教程</a>
                                </li>
                            
                                <li class="main-nav-list-item" >
                                    <a class="main-nav-list-link" href="/categories/%E7%BF%BB%E8%AF%91/">翻译文档</a>
                                </li>
                            
                                <li class="main-nav-list-item" >
                                    <a class="main-nav-list-link" href="/archives/">归档</a>
                                </li>
                            
                                <li class="main-nav-list-item" >
                                    <a class="main-nav-list-link" href="/about/index.html">关于</a>
                                </li>
                            
                        </ul>
                        <nav id="sub-nav">
                            <div id="search-form-wrap">

    <form class="search-form">
        <input type="text" class="ins-search-input search-form-input" placeholder="搜索" />
        <button type="submit" class="search-form-submit"></button>
    </form>
    <div class="ins-search">
    <div class="ins-search-mask"></div>
    <div class="ins-search-container">
        <div class="ins-input-wrapper">
            <input type="text" class="ins-search-input" placeholder="想要查找什么..." />
            <span class="ins-close ins-selectable"><i class="fa fa-times-circle"></i></span>
        </div>
        <div class="ins-section-wrapper">
            <div class="ins-section-container"></div>
        </div>
    </div>
</div>
<script>
(function (window) {
    var INSIGHT_CONFIG = {
        TRANSLATION: {
            POSTS: '文章',
            PAGES: '页面',
            CATEGORIES: '分类',
            TAGS: '标签',
            UNTITLED: '(未命名)',
        },
        ROOT_URL: '/',
        CONTENT_URL: '/content.json',
    };
    window.INSIGHT_CONFIG = INSIGHT_CONFIG;
})(window);
</script>

<script src="/js/insight.js"></script>


</div>
                        </nav>
                    </div>
                </div>
            </div>
        </div>
    </div>
</header>

        <div class="container">
            <div class="main-body container-inner">
                <div class="main-body-inner">
                    <section id="main">
                        <div class="main-body-header">
    <h1 class="header">
    
    未分类
    </h1>
</div>

                        <div class="main-body-content">
                            <article id="post-dev-2-core" class="article article-single article-type-post" itemscope itemprop="blogPost">
    <div class="article-inner">
        
        
            <div class="article-meta">
                
  <div class="article-date">
    <i class="fa fa-calendar"></i>
    <a href="/dev-2-core/" class="article-date">
       <time datetime="2021-09-10T14:53:04.272Z" itemprop="datePublished">2021-09-10</time>
    </a>
  </div>


<div class="article-date">
  <i class="fa fa-calendar-plus-o"></i>
  <a href="/dev-2-core/" class="article-date">
     <time datetime="2021-09-11T01:12:02.263Z" itemprop="dateModified">2021-09-11</time>
  </a>
</div>


                

                
                

                

            </div>
        
        
        <div class="article-entry" itemprop="articleBody">
            

            

            

            <h2 id="修改思路"><a href="#修改思路" class="headerlink" title="修改思路"></a>修改思路</h2><p>先不改造，目前看改造的必要不大，只有blueprint依赖比较严重。</p>
<h3 id="github相关"><a href="#github相关" class="headerlink" title="github相关"></a>github相关</h3><ol>
<li>homeassistant/setup.py python直接安装脚本，从github下载对应core代码zip包</li>
<li>homeassistant/components/blueprint/importer.py 负责从github加载各种blueprint,不过blueprint</li>
<li>docs/source/conf.py 编译文档使用的配置</li>
<li>github 集成组件，本来就是为了接受github事件，不需要修改</li>
</ol>
<h3 id="API-相关"><a href="#API-相关" class="headerlink" title="API 相关"></a>API 相关</h3><ol>
<li><p>homeassistant/util/location.py 调用了whoami的API</p>
</li>
<li><p>homeassistant/components/my/<strong>init</strong>.py 这个调用了my的API</p>
<h3 id="其他"><a href="#其他" class="headerlink" title="其他"></a>其他</h3></li>
<li><p>暂无</p>
</li>
</ol>

        </div>
        <footer class="article-footer">
            

    <div class="bshare-custom">
	<a title="分享到微信" class="bshare-weixin"></a>
	<a title="分享到QQ空间" class="bshare-qzone"></a>
	<a title="分享到新浪微博" class="bshare-sinaminiblog"></a>
	<a title="分享到腾讯微博" class="bshare-qqmb"></a>
	<a
		title="更多平台"
		class="bshare-more bshare-more-icon more-style-addthis"
	></a>
	<span class="BSHARE_COUNT bshare-share-count">0</span>
</div>
<script
	type="text/javascript"
	charset="utf-8"
	src="http://static.bshare.cn/b/button.js#style=-1&amp;uuid=&amp;pophcol=2&amp;lang=zh"
></script>
<script
	type="text/javascript"
	charset="utf-8"
	src="http://static.bshare.cn/b/bshareC0.js"
></script>




        </footer>
    </div>
    <script type="application/ld+json">
    {
        "@context": "https://schema.org",
        "@type": "BlogPosting",
        "author": {
            "@type": "Person",
            "name": "彭文杰"
        },
        
        "image": "http://hai-ai.gitee.io",
        "keywords": "",
        "genre": "",
        "datePublished": "2021-09-10",
        "dateCreated": "2021-09-10",
        "dateModified": "2021-09-11",
        "url": "http://hai-ai.gitee.io/dev-2-core/",
        "description": "修改思路先不改造，目前看改造的必要不大，只有blueprint依赖比较严重。
github相关
homeassistant/setup.py python直接安装脚本，从github下载对应core代码zip包
homeassistant/components/blueprint/importer.py 负责从github加载各种blueprint,不过blueprint
docs/source/",
        "wordCount": 25
    }
</script>

</article>

    <section id="comments">
    
    </section>



                        </div>
                    </section>
                    <aside id="sidebar">
    <a class="sidebar-toggle" title="Expand Sidebar"><i class="toggle icon"></i></a>
    <div class="sidebar-top">
        <p>关注我 :</p>
        <ul class="social-links">
            
                
                <li>
                    <a class="social-tooltip" title="weibo" href="/" target="_blank" rel="noopener">
                        <i class="icon fa fa-weibo"></i>
                    </a>
                </li>
                
            
                
                <li>
                    <a class="social-tooltip" title="youtube" href="/" target="_blank" rel="noopener">
                        <i class="icon fa fa-youtube"></i>
                    </a>
                </li>
                
            
                
                <li>
                    <a class="social-tooltip" title="rss" href="/" target="_blank" rel="noopener">
                        <i class="icon fa fa-rss"></i>
                    </a>
                </li>
                
            
        </ul>
    </div>
    
        
<nav id="article-nav">
    
        <a href="/dev-2-supervisor/" id="article-nav-newer" class="article-nav-link-wrap">
        <strong class="article-nav-caption">下一篇</strong>
        <p class="article-nav-title">
        
            (no title)
        
        </p>
        <i class="icon fa fa-chevron-right" id="icon-chevron-right"></i>
    </a>
    
    
        <a href="/dev-2-hacs/" id="article-nav-older" class="article-nav-link-wrap">
        <strong class="article-nav-caption">上一篇</strong>
        <p class="article-nav-title"></p>
        <i class="icon fa fa-chevron-left" id="icon-chevron-left"></i>
        </a>
    
</nav>

    
    <div class="widgets-container">
        
            
                

            
                
    <div class="widget-wrap widget-list">
        <h3 class="widget-title">分类</h3>
        <div class="widget">
            <ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B/">使用教程</a><span class="category-list-count">3</span><ul class="category-list-child"><li class="category-list-item"><a class="category-list-link" href="/categories/%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B/1-%E5%85%A5%E9%97%A8/">1-入门</a><span class="category-list-count">3</span></li></ul></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%BC%80%E5%8F%91%E6%95%99%E7%A8%8B/">开发教程</a><span class="category-list-count">2</span><ul class="category-list-child"><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%BC%80%E5%8F%91%E6%95%99%E7%A8%8B/1-%E5%85%A5%E9%97%A8/">1-入门</a><span class="category-list-count">2</span></li></ul></li></ul>
        </div>
    </div>


            
                
    <div class="widget-wrap widget-float">
        <h3 class="widget-title">标签云</h3>
        <div class="widget tagcloud">
            <a href="/tags/HA%E4%BD%BF%E7%94%A8/" style="font-size: 10px;">HA使用</a> <a href="/tags/HA%E6%A8%A1%E5%9D%97%E8%AF%B4%E6%98%8E/" style="font-size: 10px;">HA模块说明</a> <a href="/tags/%E5%B0%8F%E7%99%BD/" style="font-size: 10px;">小白</a> <a href="/tags/%E5%BC%80%E5%8F%91%E5%85%A5%E9%97%A8/" style="font-size: 20px;">开发入门</a> <a href="/tags/%E6%8D%90%E8%B5%A0/" style="font-size: 10px;">捐赠</a> <a href="/tags/%E7%B4%A2%E5%BC%95/" style="font-size: 10px;">索引</a> <a href="/tags/%E8%B4%B9%E7%94%A8/" style="font-size: 10px;">费用</a>
        </div>
    </div>


            
                
    <div class="widget-wrap widget-list">
        <h3 class="widget-title">归档</h3>
        <div class="widget">
            <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/09/">九月 2021</a><span class="archive-list-count">10</span></li></ul>
        </div>
    </div>


            
                
    <div class="widget-wrap widget-list">
        <h3 class="widget-title">链接</h3>
        <div class="widget">
            <ul>
                
                    <li>
                        <a target="_blank" rel="noopener" href="http://hexo.io">Hexo</a>
                    </li>
                
            </ul>
        </div>
    </div>


            
        
    </div>
</aside>

                </div>
            </div>
        </div>
        <footer id="footer">
    <div class="container">
        <div class="container-inner">
            <a id="back-to-top" href="javascript:;"><i class="icon fa fa-angle-up"></i></a>
            <div class="credit">
                <h1 class="logo-wrap">
                    <a href="/" class="logo"></a>
                </h1>
                <p>&copy; 2021 彭文杰</p>
                
                <p>Powered by <a href="https://hexo.io/" target="_blank">Hexo</a>. Theme by <a href="https://github.com/ppoffice" target="_blank">PPOffice</a></p>
                
            </div>
            <div class="footer-plugins">
              
    


            </div>
        </div>
    </div>
</footer>

    </div>
    


    
        
<script src="/libs/lightgallery/js/lightgallery.min.js"></script>

        
<script src="/libs/lightgallery/js/lg-thumbnail.min.js"></script>

        
<script src="/libs/lightgallery/js/lg-pager.min.js"></script>

        
<script src="/libs/lightgallery/js/lg-autoplay.min.js"></script>

        
<script src="/libs/lightgallery/js/lg-fullscreen.min.js"></script>

        
<script src="/libs/lightgallery/js/lg-zoom.min.js"></script>

        
<script src="/libs/lightgallery/js/lg-hash.min.js"></script>

        
<script src="/libs/lightgallery/js/lg-share.min.js"></script>

        
<script src="/libs/lightgallery/js/lg-video.min.js"></script>

    
    
        
<script src="/libs/justified-gallery/jquery.justifiedGallery.min.js"></script>

    
    

    
    
    



<!-- Custom Scripts -->

<script src="/js/main.js"></script>


</body>
</html>
